package com.nuedu.corejava.ch7.homework2;

public class LiteratureStudent extends Student {
	private double lecture;
	private double literature;
	
	
	
	public double getLecture() {
		return lecture;
	}
	public void setLecture(double lecture) {
		this.lecture = lecture;
	}
	public double getLiterature() {
		return literature;
	}
	public void setLiterature(double literature) {
		this.literature = literature;
	}
	public LiteratureStudent(double lecture, double literature) {
		super();
		this.lecture = lecture;
		this.literature = literature;
	}
	public LiteratureStudent() {
		super();
	}
	public LiteratureStudent(int studentId, String name, String sex, int age,double lecture, double literature, double midtermGrade, double finalExame) {
		super(studentId, name, sex, age, midtermGrade, finalExame);
		this.lecture = lecture;
		this.literature = literature;
	}
	@Override
	public double gradeAssessing() {
		double grade=(lecture+literature)*0.35+(getFinalExame()+getMidtermGrade())*0.15;
		return grade;
	}
	

}
